package com.rerun.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.rerun.entity.DictionariesCategory;

import java.util.List;

/**
 * The interface Dictionaries category mapper.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /9/30 9:12
 */
public interface DictionariesCategoryMapper extends BaseMapper<DictionariesCategory> {


    /**
     * Find all list.
     *
     * @param page the page
     * @return the list
     */
    List<DictionariesCategory> findAllPage(Pagination page);

    /**
     * Find by id dictionaries category.
     *
     * @param categoryId the category id
     * @return the dictionaries category
     */
    DictionariesCategory findById(long categoryId);
}
